import request from '@/utils/request'

// 查询患者疼痛量化得分列表
export function listPatientScore(query) {
  return request({
    url: '/business/patientScore/list',
    method: 'get',
    params: query
  })
}

// 查询患者疼痛量化得分详细
export function getPatientScore(id) {
  return request({
    url: '/business/patientScore/' + id,
    method: 'get'
  })
}

// 新增患者疼痛量化得分
export function addPatientScore(data) {
  return request({
    url: '/business/patientScore',
    method: 'post',
    data: data
  })
}

// 修改患者疼痛量化得分
export function updatePatientScore(data) {
  return request({
    url: '/business/patientScore',
    method: 'put',
    data: data
  })
}

// 删除患者疼痛量化得分
export function delPatientScore(id) {
  return request({
    url: '/business/patientScore/' + id,
    method: 'delete'
  })
}

// 查询患者疼痛量化odi和vas得分
export function getPatientOdiAndVasScore(patientId) {
  return request({
    url: '/business/patientScore/getPatientOdiAndVasList',
    method: 'get',
    params:{patientId:patientId}
  })
}
